package com.cp.properties;

import com.cp.factoty.YamlPropertySourceFactory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.PropertySource;

/**
 * Des:
 *
 * @author XL
 * @Date 2022/2/16 20:34
 */
@EqualsAndHashCode(callSuper = true)
@Data
@PropertySource(value = "classpath:redis.yml", factory = YamlPropertySourceFactory.class)
@Primary
public class CpRedisProperties extends RedisProperties {

}
